/*
 * @Author: zsc
 * @Date: 2022-06-14 21:38:31
 * @LastEditors: zsc
 * @LastEditTime: 2022-07-24 17:04:55
 * @Description: 关注列表
 */

import request from '@/utils/request'
/**
 * 关注管理列表接口
 * @param data
 * @returns {*}
 */
export function focusGetList(data) {
  return request({
    url: '/api/adminVisitor/focusIndex',
    method: 'post',
    data
  })
}
/**
 * 关注管理详情
 * @param {*} id
 * @returns
 */
export function focusGet(id) {
  const data = { id: id }
  return request({
    url: '/api/adminVisitor/focusView',
    method: 'post',
    data
  })
}
/**
 * 关注新增
 * @param {*} data
 * @returns
 */
export function focusCreate(data) {
  return request({
    url: '/api/adminVisitor/focusCreate',
    method: 'post',
    data
  })
}
/**
 * 关注新增(批量)
 * @param {*} data
 * @returns
 */
export function focusBlukCreate(data) {
  return request({
    url: '/api/adminVisitor/focusBulkCreate',
    method: 'post',
    data
  })
}

/**
 * 关注修改
 * @param {*} data
 * @returns
 */
export function focusUpdate(data) {
  return request({
    url: '/api/adminVisitor/focusUpdate',
    method: 'post',
    data
  })
}
/**
 * 关注删除
 * @param {*} id
 * @returns
 */
export function focusDel(id) {
  const data = { id: id }
  return request({
    url: '/api/adminVisitor/focusDelete',
    method: 'post',
    data
  })
}

